package com.ls.controller.version;

import com.ls.service.IVersionService;
import com.ls.utils.ResultData;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 版本更新表 前端控制器
 * </p>
 *
 * @author pengyu
 * @since 2020-05-21
 */
@Api(value = "版本更新app相关接口", tags = "版本更新app相关接口")
@RestController
@RequestMapping("/versionApp")
@RequiredArgsConstructor
public class VersionAppController {
    private final IVersionService service;
    /** 获取最新版本 */
    @GetMapping("getVersion")
    public ResultData getVersion() {
        return service.getVersion();
    }
}
